package org.yaac.client.place;


import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
public class EGQLPlace extends YaacPlace {

	/**
	 * 
	 */
	public static final String URL_TOKEN = "query";
	
	@Override
	public String urlTokenPrefix() {
		return URL_TOKEN;
	}

	/**
	 * @author Max Zhu (thebbsky@gmail.com)
	 *
	 */
	@Prefix(URL_TOKEN)
	public static class Tokenizer implements PlaceTokenizer<EGQLPlace> {

		@Override
		public String getToken(EGQLPlace place) {
			return "";
		}

		@Override
		public EGQLPlace getPlace(String token) {
			return new EGQLPlace();
		}
	}
}
